//
//  VC_Login.m
//  yjw-winner
//
//  Created by 王春辉 on 2018/9/14.
//  Copyright © 2018年 Shanghai decade financial information service co., LTD. All rights reserved.
//

#import "VC_Login.h"
#import "JudgeStarsView.h"

@interface VC_Login ()
@property (weak, nonatomic) IBOutlet UIImageView *headImageView;
@property (weak, nonatomic) IBOutlet UITextField *accountTextField;
@property (weak, nonatomic) IBOutlet UITextField *passwordTextField;
@property (weak, nonatomic) IBOutlet UIButton *hiddenPasswordButton;
@property (weak, nonatomic) IBOutlet UIButton *loginButton;
@property (weak, nonatomic) IBOutlet UIButton *registButton;

@end

@implementation VC_Login

- (void)viewDidLoad {
    [super viewDidLoad];
    self.headImageView.layer.masksToBounds = YES;
    self.headImageView.layer.cornerRadius = self.headImageView.mj_w * 0.5;
    
    self.loginButton.layer.masksToBounds = YES;
    self.loginButton.layer.cornerRadius = 4.0f;
    
    self.registButton.layer.masksToBounds = YES;
    self.registButton.layer.cornerRadius = 4.0f;
    self.registButton.layer.borderColor = [UIColor grayColor].CGColor;
    self.registButton.layer.borderWidth = 1.0f;
}

#pragma mark --mark EVENT

- (IBAction)loginDismiss:(UIButton *)sender {
    [self dismissViewControllerAnimated:NO completion:nil];
}
- (IBAction)hiddenPasswordButtonClick:(UIButton *)sender {
    sender.selected = !sender.selected;
    self.passwordTextField.secureTextEntry = !sender.selected;
}
- (IBAction)loginButtonClick:(UIButton *)sender {
}

- (IBAction)registButtonClick:(UIButton *)sender {
}
- (IBAction)registNowButtonClick:(UIButton *)sender {
}

- (IBAction)forgetPasswordButtonClick:(UIButton *)sender {
}
- (IBAction)wechatButtonClick:(UIButton *)sender {
    [MBProgressHUD showSuccess:@"微信登录"];
}
- (IBAction)qqButtonClick:(UIButton *)sender {
    [MBProgressHUD showSuccess:@"qq登录"];
}
- (IBAction)sinaButtonClick:(UIButton *)sender {
    [MBProgressHUD showSuccess:@"新浪微博登录"];
}

@end
